﻿        var currentPage = 1; // 当前页
        var pageSize = 18; // 每页显示多少条
        var pageall = 0; // 总页数
        var total = 0; // 总记录数
        var type = 0;
        $(document).ready(function() {
            var id = LexunJS.GetQueryString("id"); // 类型
            if (id == "1") {
                document.getElementById("divCustomer").style.display = "";
                document.getElementById("divProperTy").style.display = "none";
                ShowCustomerList(currentPage);
            }
            if (id == "2") {
                document.getElementById("divCustomer").style.display = "none";
                document.getElementById("divProperTy").style.display = "";
                ShowHousingList(currentPage);
            }
            if (id == "3") {
                document.getElementById("divCustomer").style.display = "none";
                document.getElementById("divProperTy").style.display = "none";
                ShowBuildList(currentPage);
            }
            if (id == "4") {
                document.getElementById("divCustomer").style.display = "none";
                document.getElementById("divProperTy").style.display = "none";
                ShowEstateList(currentPage);
            }

        });
        //恢复数据
        function Update() {
            var id = LexunJS.GetQueryString("id"); // 类型
            if (id == "1") {
                UpdateCustomer();
            }
            if (id == "2") {
                UpdateHousing();
            }
            if (id == "3") {
                UpdateBuild();
            }
            if (id == "4") {
                UpdateEstate();
            }
         }
        //彻底删除
        function Delete() {
            var id = LexunJS.GetQueryString("id"); // 类型
            if (id == "1") {
                delCustomer();
            }
            if (id == "2") {
                delHousing();
            }
            if (id == "3") {
                delBuild();
            }
            if (id == "4") {
                delEstate();
            }
         }
        function ShowCustomerList(currentPage) {
            $("#divList").html(""); // 清空列表
            $("#divPage").html(""); // 清空分页
            $("#divList").html("<img src=\"../images/loading.gif\" />"); // 清空列表

            var CustId = document.getElementById("CustId").value;
            var CustName = document.getElementById("CustName").value;
            var CustTel = document.getElementById("CustTel").value;
            
            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerCustomer.ashx',
                data: 'act=p_CustomerRecycleList&page=' + currentPage + '&pagesize=' + pageSize + '&CustId='+CustId+'&CustName='+CustName+'&CustTel='+CustTel,
                timeout: '10000',
                error: function() {
                    alert("修改失败！");
                },
                success: function(json) {
                    ShowCustomerCallBack(json);
                }
            });
        }

        function ShowCustomerCallBack(response) {
            var json = eval("(" + response + ")");
            var record = json.record;

            var page = json.page;
            currentPage = page.currentpage;
            pageall = parseInt(page.pageall);
            total = page.total;

            if (record == null || record.length == 0) {
                $("#divList").html("<font color='red'>&nbsp;系统内暂无您查询的信息!</font>");
                return;
            }
            $("#divList").html(""); // 显示列表
            var arr = [];
            arr.push("<table id='table2' width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#a8c7ce'>");
            arr.push("<tr>");
            arr.push("<td height='25'   bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("<input type=\"checkbox\" name=\"checkboxAll\" id=\"checkboxAll\"  onclick=\"cbSelectAll()\" />");
            arr.push("</td>");

            arr.push("<td height='25'   bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("客源编号");
            arr.push("</td>");

            arr.push("<td height='25'   bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("姓名");
            arr.push("</td>");
            
            arr.push("<td height='25' bgcolor='d3eaef' class='STYLE10'>");
            arr.push("登客人");
            arr.push("</td>");

            arr.push("<td height='25'  bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("登客部门</td>");

            arr.push("<td height='25'  bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("删除日期</td>");

            arr.push("<td height='25' bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("登客日期</td>");
            arr.push("</tr>");

            for (var i = 0; i < record.length; i++) {
                if (i % 2 == 0)
                    arr.push("<tr id='tr_" + record[i].id + "' bgcolor='#FFFFFF' style='cursor: pointer;'  onclick=\"selectedTr('" + record[i].id + "')\" >");
                else
                    arr.push("<tr id='tr_" + record[i].id + "' bgcolor='#EEEDED' style='cursor: pointer;'  onclick=\"selectedTr('" + record[i].id + "')\" >");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("<input type='checkbox' name='checkbox_" + record[i].id + "' id='" + record[i].id + "' onclick=\"cbSelect(this, " + record[i].id + ")\" />");
                arr.push("</td>");
                arr.push("<td height='25' class='STYLE10'>");
                arr.push("" + record[i].id + "</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].customer + "</td>");
                arr.push("<td height='25' class='STYLE10'>");
                arr.push("" + record[i].owner + "</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].ownerdept + "</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].modifydate + "</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].ownerdate + "</td>");
                arr.push("</tr>");
            }

            arr.push("</table>");
            $("#divList").html(arr.join('')); // 显示列表
            $("#divPage").html(""); // 清空
            if (pageall > 1) {

                var pageHtml = LexunJS.showPage2(currentPage, pageall, "ShowCustomerList");  // 分页
                $("#divPage").html(pageHtml);

            }
        }
        function ShowHousingList(currentPage) {
            $("#divList").html(""); // 清空列表
            $("#divPage").html(""); // 清空分页
            $("#divList").html("<img src=\"../images/loading.gif\" />"); // 清空列表

            var properTyId = document.getElementById("ProperTyId").value;
            var name = $("#iEstateName").val();             // 楼盘名称
            
            
            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerHousing.ashx',
                data: 'act=p_housingRecycleList&page=' + currentPage + '&pagesize=' + pageSize+'&=pId='+properTyId+'&name='+name,
                timeout: '10000',
                error: function() {
                    alert("修改失败！");
                },
                success: function(json) {
                    ShowHousingCallBack(json);
                }
            });
        }

        function ShowHousingCallBack(response) {
            var json = eval("(" + response + ")");
            var record = json.record;

            var page = json.page;
            currentPage = page.currentpage;
            pageall = parseInt(page.pageall);
            total = page.total;

            if (record == null || record.length == 0) {
                $("#divList").html("<font color='red'>&nbsp;系统内暂无您查询的信息!</font>");
                return;
            }
            $("#divList").html(""); // 显示列表
            var arr = [];
            arr.push("<table id='table2' width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#a8c7ce'>");
            arr.push("<tr>");
            arr.push("<td height='25'   bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("<input type=\"checkbox\" name=\"checkboxAll\" id=\"checkboxAll\"  onclick=\"cbSelectAll()\" />");
            arr.push("</td>");

            arr.push("<td height='25'   bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("盘源编号");
            arr.push("</td>");
            
            arr.push("<td height='25'   bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("楼盘名称");
            arr.push("</td>");
            
            arr.push("<td height='25'   bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("栋阁名称");
            arr.push("</td>");
            arr.push("<td height='25' bgcolor='d3eaef' class='STYLE10'>");
            arr.push("楼层");
            arr.push("</td>");
            arr.push("<td height='25'  bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("房号</td>");
            arr.push("<td height='25'  bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("类型</td>");
           
            arr.push("<td height='25'  bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("登盘人</td>");

            arr.push("<td height='25' bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("时间</td>");
            arr.push("</tr>");

            for (var i = 0; i < record.length; i++) {
                if (i % 2 == 0)
                    arr.push("<tr id='tr_" + record[i].id + "' bgcolor='#FFFFFF' style='cursor: pointer;'  onclick=\"selectedTr('" + record[i].id + "')\" >");
                else
                    arr.push("<tr id='tr_" + record[i].id + "' bgcolor='#EEEDED' style='cursor: pointer;'  onclick=\"selectedTr('" + record[i].id + "')\" >");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("<input type='checkbox' name='checkbox_" + record[i].id + "' id='" + record[i].id + "' onclick=\"cbSelect(this, " + record[i].id + ")\" />");
                arr.push("</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].id + "</td>")
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].ename + "</td>")
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].buildname + "</td>")
                arr.push("<td height='25' class='STYLE10'>");
                arr.push("" + record[i].mark1 + "</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].roomno + "</td>")

                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + LexunJS.GetUsageNameById(LexunJS.GetUsageNameById(record[i].use)) + "</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].markuser + "</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].markdate + "</td>");
                arr.push("</tr>");
            }

            arr.push("</table>");
            $("#divList").html(arr.join('')); // 显示列表
            $("#divPage").html(""); // 清空
            if (pageall > 1) {

                var pageHtml = LexunJS.showPage2(currentPage, pageall, "ShowHousingList");  // 分页
                $("#divPage").html(pageHtml);

            }
        }
        function ShowEstateList(currentPage) {
            $("#divList").html(""); // 清空列表
            $("#divPage").html(""); // 清空分页
            $("#divList").html("<img src=\"../images/loading.gif\" />"); // 清空列表
           
            
            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerIndex.ashx',
                data: 'act=p_Estate_Recycle_List&page=' + currentPage + '&pagesize=' + pageSize,
                timeout: '10000',
                error: function() {
                    alert("修改失败！");
                },
                success: function(json) {
                    ShowEstateCallBack(json);
                }
            });
        }

        function ShowEstateCallBack(response) {
            var json = eval("(" + response + ")");
            var record = json.record;

            var page = json.page;
            currentPage = page.currentpage;
            pageall = parseInt(page.pageall);
            total = page.total;

            if (record == null || record.length == 0) {
                $("#divList").html("<font color='red'>&nbsp;系统内暂无您查询的信息!</font>");
                return;
            }
            $("#divList").html(""); // 显示列表
            var arr = [];
            arr.push("<table id='table2' width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#a8c7ce'>");
            arr.push("<tr>");
            arr.push("<td height='25'   bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("<input type=\"checkbox\" name=\"checkboxAll\" id=\"checkboxAll\"  onclick=\"cbSelectAll()\" />");
            arr.push("</td>");
            arr.push("<td height='25'   bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("楼盘名称");
            arr.push("</td>");
            arr.push("<td height='25' bgcolor='d3eaef' class='STYLE10'>");
            arr.push("片区");
            arr.push("</td>");

            arr.push("<td height='25' bgcolor='d3eaef' class='STYLE10'>");
            arr.push("城区");
            arr.push("</td>");

            arr.push("<td height='25'  bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("用途</td>");

            arr.push("<td height='25'  bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("类型</td>");

            arr.push("<td height='25' bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("地址</td>");
            arr.push("</tr>");

            for (var i = 0; i < record.length; i++) {
                if (i % 2 == 0)
                    arr.push("<tr id='tr_" + record[i].id + "' bgcolor='#FFFFFF' style='cursor: pointer;'  onclick=\"selectedTr('" + record[i].id + "')\" >");
                else
                    arr.push("<tr id='tr_" + record[i].id + "' bgcolor='#EEEDED' style='cursor: pointer;'  onclick=\"selectedTr('" + record[i].id + "')\" >");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("<input type='checkbox' name='checkbox_" + record[i].id + "' id='" + record[i].id + "' onclick=\"cbSelect(this, " + record[i].id + ")\" />");
                arr.push("</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].name + "</td>")
                arr.push("<td height='25' class='STYLE10'>");
                arr.push("" + record[i].cityname + "</td>");
                arr.push("<td height='25' class='STYLE10'>");
                arr.push("" + record[i].areaname + "</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + LexunJS.GetUsageNameById(record[i].usage) + "</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].type + "</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].address + "</td>");
                arr.push("</tr>");
            }


            arr.push("</table>");
            $("#divList").html(arr.join('')); // 显示列表
            $("#divPage").html(""); // 清空
            if (pageall > 1) {

                var pageHtml = LexunJS.showPage2(currentPage, pageall, "ShowEstateList");  // 分页
                $("#divPage").html(pageHtml);

            }
        }

        function ShowBuildList(currentPage) {
            $("#divList").html(""); // 清空列表
            $("#divPage").html(""); // 清空分页
            $("#divList").html("<img src=\"../images/loading.gif\" />"); // 清空列表 

            $.ajax({
                type: 'POST',
                url: '../Handler/HandlerIndex.ashx',
                data: 'act=p_Build_Recycle_List&page=' + currentPage + '&pagesize=' + pageSize,
                timeout: '10000',
                error: function() {
                    alert("修改失败！");
                },
                success: function(json) {
                    ShowBuildCallBack(json);
                }
            });
        }

        function ShowBuildCallBack(response) {
            var json = eval("(" + response + ")");
            var record = json.record;
            var page = json.page;
            currentPage = page.currentpage;
            pageall = parseInt(page.pageall);
            total = page.total;

            if (record == null || record.length == 0) {
                $("#divList").html("<font color='red'>&nbsp;系统内暂无您查询的信息!</font>");
                return;
            }
            $("#divList").html(""); // 显示列表
            var arr = [];
            arr.push("<table id='table2' width='100%' border='0' cellpadding='0' cellspacing='1' bgcolor='#a8c7ce'>");
            arr.push("<tr>");
            arr.push("<td height='25'   bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("<input type=\"checkbox\" name=\"checkboxAll\" id=\"checkboxAll\"  onclick=\"cbSelectAll()\" />");
            arr.push("</td>");
            arr.push("<td height='25'   bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("栋阁名称");
            arr.push("</td>");
            arr.push("<td height='25'   bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("类型");
            arr.push("</td>");
            arr.push("<td height='25' bgcolor='d3eaef'  class='STYLE10'>");
            arr.push("所属楼盘</td>");
            arr.push("</tr>");

            for (var i = 0; i < record.length; i++) {
                if (i % 2 == 0)
                    arr.push("<tr id='tr_" + record[i].id + "' bgcolor='#FFFFFF' style='cursor: pointer;'  onclick=\"selectedTr('" + record[i].id + "')\" >");
                else
                    arr.push("<tr id='tr_" + record[i].id + "' bgcolor='#EEEDED' style='cursor: pointer;'  onclick=\"selectedTr('" + record[i].id + "')\" >");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("<input type='checkbox' name='checkbox_" + record[i].id + "' id='" + record[i].id + "' onclick=\"cbSelect(this, " + record[i].id + ")\" />");
                arr.push("</td>");
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].name + "</td>")
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + LexunJS.GetUsageNameById(record[i].usage) + "</td>")
                arr.push("<td height='25'  class='STYLE10'>");
                arr.push("" + record[i].ename + "</td>");
                arr.push("</tr>");
            }


            arr.push("</table>");
            $("#divList").html(arr.join('')); // 显示列表
            $("#divPage").html(""); // 清空
            if (pageall > 1) {

                var pageHtml = LexunJS.showPage2(currentPage, pageall, "ShowBuildList");  // 分页
                $("#divPage").html(pageHtml);

            }
        }
        // 选中某行
        function selectedTr(id) {
            $("tr").removeClass("selected");
            $("#tr_" + id).addClass("selected");
            return false;
        }
        // 单选
        function cbSelect(obj, objvalue) {
            if (obj.checked) {
                LexunJS.addOrCutData(1, "hID", objvalue);

            }
            else {
                LexunJS.addOrCutData(0, "hID", objvalue);
            }
        }

        // 全选
        function cbSelectAll() {
            document.getElementById("hID").value = "";

            var cbAll = document.getElementById("checkboxAll");
            var checkList = document.getElementsByTagName("input");

            if (cbAll.checked) {
                for (var i = 0; i < checkList.length; i++) {
                    if (checkList[i].type == "checkbox" && checkList[i].id > 0) {
                        checkList[i].checked = true;
                        if (parseInt(checkList[i].id) > 0) LexunJS.addOrCutData(1, "hID", checkList[i].id);
                    }
                }
            }
            else {
                for (var i = 0; i < checkList.length; i++) {
                    if (checkList[i].type == "checkbox" && checkList[i].id > 0) {
                        checkList[i].checked = false;
                        if (parseInt(checkList[i].id) > 0) LexunJS.addOrCutData(0, "hID", checkList[i].id);
                    }
                }
            }
        }
        ///删除盘源
        function delHousing() {
            var IDList = document.getElementById("hID").value;
            document.getElementById("hID").value = "";
            if (IDList == "") {
                alert("请先选择您要删除的行！");
                return;
            }
            hiConfirm("您确定要删除该行，请谨慎操作！", "确认框", function(result) {
                if (result) {
                    // ajax删除                   
                    $.ajax({
                        type: 'POST',
                        url: '../Handler/HandlerHousing.ashx',
                        data: 'act=DeleteHousing&id=' + IDList,
                        timeout: '10000',
                        error: function() {
                            alert("删除失败！");
                        },
                        success: function(outmsg) {
                        alert(outmsg);
                            ShowHousingList(currentPage);

                        }
                    });
                }
            });
        }
        ///删除客源
        function delCustomer() {
            var IDList = document.getElementById("hID").value;
            document.getElementById("hID").value = "";
            if (IDList == "") {
                alert("请先选择您要删除的行！");
                return;
            }
            hiConfirm("您确定要删除该行，请谨慎操作！", "确认框", function(result) {
                if (result) {
                    // ajax删除                   
                    $.ajax({
                        type: 'POST',
                        url: '../Handler/HandlerCustomer.ashx',
                        data: 'act=DeleteCustomer&id=' + IDList,
                        timeout: '10000',
                        error: function() {
                            alert("删除失败！");
                        },
                        success: function(outmsg) {
                        alert(outmsg);
                            ShowCustomerList(currentPage);

                        }
                    });
                }
            });
        }
       
        ///删除楼盘
        function delEstate() {
            var IDList = document.getElementById("hID").value;
            document.getElementById("hID").value = "";
            if (IDList == "") {
                alert("请先选择您要删除的行！");
                return;
            }
            hiConfirm("您确定要删除该行，请谨慎操作！", "确认框", function(result) {
                if (result) {
                    // ajax删除                   
                    $.ajax({
                        type: 'POST',
                        url: '../Handler/HandlerIndex.ashx',
                        data: 'act=DeleteEstate&id=' + IDList,
                        timeout: '10000',
                        error: function() {
                            alert("删除失败！");
                        },
                        success: function(outmsg) {
                        alert(outmsg);
                            ShowEstateList(currentPage);

                        }
                    });
                }
            });
        }
        ///删除栋阁
        function delBuild() {
            var IDList = document.getElementById("hID").value;
            document.getElementById("hID").value = "";
            if (IDList == "") {
                alert("请先选择您要删除的行！");
                return;
            }
            hiConfirm("您确定要删除该行，请谨慎操作！", "确认框", function(result) {
                if (result) {
                    // ajax删除                   
                    $.ajax({
                        type: 'POST',
                        url: '../Handler/HandlerIndex.ashx',
                        data: 'act=DeleteBuild&id=' + IDList,
                        timeout: '10000',
                        error: function() {
                            alert("删除失败！");
                        },
                        success: function(outmsg) {
                        alert(outmsg);
                             ShowBuildList(currentPage);

                        }
                    });
                }
            });
        }

        ///恢复栋阁
        function UpdateBuild() {
            var IDList = document.getElementById("hID").value;
            document.getElementById("hID").value = "";
            if (IDList == "") {
                alert("请先选择您要恢复的行！");
                return;
            }
            hiConfirm("您确定要恢复除该行，请谨慎操作！", "确认框", function(result) {
                if (result) {
                    // ajax删除                   
                    $.ajax({
                        type: 'POST',
                        url: '../Handler/HandlerIndex.ashx',
                        data: 'act=UpdateBuildDelFlag&id=' + IDList,
                        timeout: '10000',
                        error: function() {
                            alert("恢复失败！");
                        },
                        success: function(outmsg) {
                            alert(outmsg);
                            ShowBuildList(currentPage);
                        }
                    });
                }
            });
        }
        ///恢复楼盘
        function UpdateEstate() {
            var IDList = document.getElementById("hID").value;
            document.getElementById("hID").value = "";
            if (IDList == "") {
                alert("请先选择您要恢复的行！");
                return;
            }
            hiConfirm("您确定要恢复除该行，请谨慎操作！", "确认框", function(result) {
                if (result) {
                    // ajax删除                   
                    $.ajax({
                        type: 'POST',
                        url: '../Handler/HandlerIndex.ashx',
                        data: 'act=UpdateEstateDelFlag&id=' + IDList,
                        timeout: '10000',
                        error: function() {
                            alert("恢复失败！");
                        },
                        success: function(outmsg) {
                        alert(outmsg);
                            ShowEstateList(currentPage);
                        }
                    });
                }
            });
        }
        ///恢复楼盘
        function UpdateHousing() {
            var IDList = document.getElementById("hID").value;
            document.getElementById("hID").value = "";
            if (IDList == "") {
                alert("请先选择您要恢复的行！");
                return;
            }
            hiConfirm("您确定要恢复该行，请谨慎操作！", "确认框", function(result) {
                if (result) {
                    // ajax删除                   
                    $.ajax({
                        type: 'POST',
                        url: '../Handler/HandlerHousing.ashx',
                        data: 'act=UpdateDltFlag&id=' + IDList,
                        timeout: '10000',
                        error: function() {
                            alert("恢复失败！");
                        },
                        success: function(outmsg) {
                        alert(outmsg);
                            ShowHousingList(currentPage);

                        }
                    });
                }
            });
        }
        ///恢复客源
        function UpdateCustomer() {
            var IDList = document.getElementById("hID").value;
            document.getElementById("hID").value = "";
            if (IDList == "") {
                alert("请先选择您要恢复的行！");
                return;
            }
            hiConfirm("您确定要恢复该行，请谨慎操作！", "确认框", function(result) {
                if (result) {
                    // ajax删除                   
                    $.ajax({
                        type: 'POST',
                        url: '../Handler/HandlerCustomer.ashx',
                        data: 'act=UpdateDltFlag&id=' + IDList,
                        timeout: '10000',
                        error: function() {
                            alert("恢复失败！");
                        },
                        success: function(outmsg) {
                            alert(outmsg);
                            ShowCustomerList(currentPage);

                        }
                    });
                }
            });
        }
